In mathematics, a shuffle algebra is a Hopf algebra with a basis corresponding to words on some set, whose product is given by the shuffle product XшY of two words X, Y: the sum of all ways of interlacing them. The shuffle product was introduced by Eilenberg & Mac Lane (1953). The name "shuffle product" refers to the fact that the product can be thought of as a sum over all ways of riffle shuffling two words together.
The shuffle algebra on a finite set is the graded dual of the universal enveloping algebra of the free Lie algebra on the set.
Over the rational numbers, the shuffle algebra is isomorphic to the polynomial algebra in the Lyndon words.
The shuffle product of two words in some alphabet is often denoted by the shuffle product symbol ш (a cyrillic sha, or the unicode character SHUFFLE PRODUCT (U+29E2)).
The shuffle product of words of lengths m and n is a sum over the (m+n)!/m!n! ways of interleaving the two words, as shown in the following examples: